package com.weiyi.weiman.exception;

import com.weiyi.weiman.domain.status.TokenStatus;

/**
 * @Author zhang
 * @Date 2021/5/10 下午12:12
 * @Description
 * @Version 1.0
 **/
public class TokenException extends RuntimeException {

    private TokenStatus tokenStatus;

    public TokenException(TokenStatus tokenStatus) {
        super(tokenStatus.getMessage());
        this.tokenStatus = tokenStatus;
    }

    public TokenStatus getTokenStatus() {
        return tokenStatus;
    }

}
